package com.uyayo.portal.vo;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

public class RegisterVO {
	
	@NotNull(message = "{loginname.null}")
	@Size(min = 5, max = 36, message = "{loginname.size.error}")
	private String loginname;
	
	@NotNull(message = "{password.null}")
	@Size(min = 5, max = 36, message = "{password.size.error}")
	private String password;
	
	/**
     * 手机号码
     */
	@Pattern(regexp = "/^1[3-9]\\d{9}$/", message = "{phone.format.error}")
    private String phone;
    
    
	@Pattern(regexp = "[a-zA-Z0-9]{1,4}", message = "{captcha.format.error}")
	private String captcha;

	public String getLoginname() {
		return loginname;
	}

	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}
	
	
}
